﻿using System.Collections.Generic;

namespace JinYuan.MES.Models
{
    /// <summary>
    /// 报警数据上传接口参数类
    /// </summary>
    public class UploadAlarmParam
    {
        /// <summary>
        /// 工厂代码
        /// </summary>
        public string siteCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string lineCode { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string equipNum { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string materialCode { get; set; }
        /// <summary>
        /// 员工账号
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 采集时间
        /// </summary>
        public string recordDate { get; set; }
        /// <summary>
        /// 唯一标识符号
        /// </summary>
        public string guid { get; set; }
        /// <summary>
        /// 库位ID 库位ID，化成段用
        /// </summary>
        public string seatId { get; set; }
        /// <summary>
        /// 报警数组
        /// </summary>
        public List<AlarmLineListItem> alarmLineList { get; set; }
    }


    /// <summary>
    /// 报警数组
    /// </summary>
    public class AlarmLineListItem
    {
        /// <summary>
        /// 报警消除时间
        /// </summary>
        public string alarmEndTime { get; set; }
        /// <summary>
        /// 报警类型
        /// </summary>
        public string alarmType { get; set; }
        /// <summary>
        /// 报警名称
        /// </summary>
        public string alarmName { get; set; }
        /// <summary>
        /// 报警开始时间
        /// </summary>
        public string alarmStartTime { get; set; }
        /// <summary>
        /// 故障代码
        /// </summary>
        public string faultCode { get; set; }
    }
}
